package com.aijk.web.admin.controller;

import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * Created by iscdw on 2016/4/20.
 */
public interface ICrudController<BEAN, IDTYPE> {

    String getList(BEAN bean);

    String edit(Model model, @RequestParam(required = false) IDTYPE id);

    String save(Model model, BEAN bean);

    String delete(IDTYPE id);
}
